package com.ftg.elvis.service;

import com.ftg.elvis.mapper.AdminIntriduceMapper;
import com.ftg.elvis.pojo.Introduce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminIntriduceService {

	@Autowired
	AdminIntriduceMapper adminIntriduceMapper;

	public List<Introduce> showAll(int page, int limit) {
		page = (page - 1) * limit;
		return adminIntriduceMapper.showAll(page, limit);
	}

	public int getCount() {
		return adminIntriduceMapper.getCount();
	}

	public int update(Introduce introduce) {
		return adminIntriduceMapper.update(introduce);
	}
}
